import request from '@/utils/request'

/**
 * 支柱缺陷关联分析
 */
export function findDefectCorrelationAnalysis(params) {
  return request({
    url: '/cms/jcwDefectInfo/findDefectCorrelationAnalysis',
    method: 'get',
    params: params
  })
}
/**
 * 缺陷与地域关系
 */
export function findDefectsRegionalRelations(params) {
  return request({
    url: '/cms/jcwDefectInfo/findDefectsRegionalRelations',
    method: 'get',
    params: params
  })
}
/**
 * 缺陷与地域关系 弹出窗接口
 */
export function findPillarDefect(params) {
  return request({
    url: '/cms/jcwDefectInfo/findPillarDefect',
    method: 'get',
    params: params
  })
}
/**
 * 缺陷与时间关系
 */
export function DefectAndTimeRelation(params) {
  return request({
    url: '/cms/defectAndTime/defectAndTimeRelation',
    method: 'post',
    data: params
  })
}
/**
 * 检测缺陷重复
 */
export function findDefectRepeatedAnalysis(params) {
  return request({
    url: '/cms/jcwDefectInfo/findDefectRepeatedAnalysis',
    method: 'get',
    params: params
  })
}
/**
 * 缺陷多维度统计，装置类型
 */
export function getDeviceType(params) {
  return request({
    url: '/cms/common/getDeviceType',
    method: 'get',
    params: params
  })
}
/**
 * 缺陷多维度统计
 */
export function findDefectMultipleDimensions(params) {
  return request({
    url: '/cms/jcwDefectInfo/findDefectMultipleDimensions',
    method: 'get',
    params: params
  })
}
/**
 * 缺陷横向分析，获取检测日期
 */
export function findLateralAnalysisTime(params) {
  return request({
    url: '/cms/jcwDefectInfo/findLateralAnalysisTime',
    method: 'get',
    params: params
  })
}
/**
 * 缺陷横向分析，获取1C
 */
export function find1CLateralAnalysis(params) {
  return request({
    url: '/cms/jcwDefectInfo/find1CLateralAnalysis',
    method: 'get',
    params: params
  })
}
/**
 * 缺陷横向分析，获取2C
 */
export function find2CLateralAnalysis(params) {
  return request({
    url: '/cms/jcwDefectInfo/find2CLateralAnalysis',
    method: 'get',
    params: params
  })
}
/**
 * 缺陷横向分析，获取4C
 */
export function find4CLateralAnalysis(params) {
  return request({
    url: '/cms/jcwDefectInfo/find4CLateralAnalysis',
    method: 'get',
    params: params
  })
}
/**
 * 缺陷统计-基本信息
 */
export function findDefectsBasicInformation(params) {
  return request({
    url: '/cms/jcwDefectInfo/findDefectsBasicInformation',
    method: 'get',
    params: params
  })
}
/**
 * 缺陷统计-缺陷走势
 */
export function defectsTrend(params) {
  return request({
    url: '/cms/jcwDefectInfo/defectsTrend',
    method: 'get',
    params: params
  })
}
/**
 * 缺陷统计-缺陷类型统计
 */
export function defectsStatistics(params) {
  return request({
    url: '/cms/jcwDefectInfo/defectsStatistics',
    method: 'get',
    params: params
  })
}
/**
 * 缺陷统计-缺陷TOP5
 */
export function defectsTop5(params) {
  return request({
    url: '/cms/jcwDefectInfo/defectsTop5',
    method: 'get',
    params: params
  })
}
/**
 * 缺陷统计-缺陷分类 饼图
 */
export function defectsClassification(params) {
  return request({
    url: '/cms/jcwDefectInfo/defectsClassification',
    method: 'get',
    params: params
  })
}
/**
 * 缺陷统计-缺陷装置对比
 */
export function defectsTypeContrast(params) {
  return request({
    url: '/cms/jcwDefectInfo/defectsTypeContrast',
    method: 'get',
    params: params
  })
}

/**
 * 专项分析-鸟巢与危树统计
 */
export function defectsSpecialAnalysis(params) {
  return request({
    url: '/cms/jcwDefectInfo/defectsSpecialAnalysis',
    method: 'get',
    params: params
  })
}

/**
 * 专项分析-区站缺陷发生排行榜
 */
export function siteDefectTop(params) {
  return request({
    url: '/cms/jcwDefectInfo/siteDefectTop',
    method: 'get',
    params: params
  })
}

/**
 * 专项分析-线路年度数据展示
 */
export function lineDefectYear(params) {
  return request({
    url: '/cms/jcwDefectInfo/lineDefectYear',
    method: 'get',
    params: params
  })
}
